home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows 3-Pak - Disc 3
/
Infomagic - Windows 3-Pak (Disc 3 of 3).iso
/
Telnet-Clients
/
HOSTACCESS.exe
/
MISC.1
/
CITOH.MCR
< prev
next >
Wrap
Text File
|
1996-01-22
|
882b
|
42 lines
rem simple macro to demonstrate loggin into a system
rem which requires an account user name and then
rem an application user name and password.
rem
DIM I as integer
I=0
rem
rem Wake up the connection vy sending CR
send "CR"
loopy:
wait timeout 10
rem
rem when the login string appears then start the
rem loop for limited retries.
case "Please :"
I=I+1
if I > 3 then
print "three attempts have been made to log on"
goto final
endif
rem
rem Send the user name and the carriage return
send "'PIXEL'CR"
delay 5
rem
rem when the string for the application login appears
rem send the correct application username
case "Id:"
send "'SIMON'CR"
delay 5
rem
rem Case of when the string part of password appears
rem when detected, send the password
case "word:"
send "' 'CR"
delay 5
timeout : goto final
end wait
goto loopy
final:
end